﻿<%@ Page Title="Stubby Login" Language="C#" MasterPageFile="~/Web Pages/Site.Master" AutoEventWireup="true" 
    CodeBehind="LogIn.aspx.cs" Inherits="CS490_Capstone___Stubby.Page.LogIn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Panel ID="content" CssClass="content" runat="server">
        <asp:Panel ID="topSpacer" runat="server">
        </asp:Panel>
        <asp:Panel ID="input" CssClass="input" runat="server" Visible="True">
            <h3>Sign in to Stubby:</h3>
            <h5><asp:Label ID="labelPrompt" Text="" runat="server" CssClass="validation" Visible="false">
                </asp:Label></h5>
            
            <asp:Table ID="loginTable" CssClass="inputs" runat="server">
                <asp:TableRow>
                    <asp:TableCell>
                        <span>User name:</span>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="padded">
                        <asp:TextBox ID="userName" runat="server" Text="" CssClass="leftInput">
                        </asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell>
                        <span>Password:</span>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="padded">
                        <asp:TextBox ID="password" runat="server" TextMode="password" CssClass="leftInput">
                        </asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="padded">
                        <asp:CheckBox ID="adminStatus" runat="server" CssClass="checkBox" />
                        <span class="checkText">Log in as administrator</span>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="right">
                        <br />
                        <asp:Button ID="btnLogIn" runat="server" Text="Submit" onclick="Button1_Click" />
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell CssClass="help" ColumnSpan="2">
                        <a onclick="getHelp(getMessage(4))">HELP&nbsp;</a>
                    </asp:TableCell>
                </asp:TableRow>
            </asp:Table>
            <br />
            <asp:RequiredFieldValidator ID="userNameValidator" runat="server" 
                ErrorMessage="You must enter a valid user name to log in" ControlToValidate="userName" 
                CssClass="validation" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <br />
            <asp:RequiredFieldValidator ID="passwordValidator" runat="server" 
                ErrorMessage="You must enter a valid password to log in"  ControlToValidate="password"
                CssClass="validation"></asp:RequiredFieldValidator>
        </asp:Panel>
    </asp:Panel>

</asp:Content>
